const http = uni.$u.http
// 编辑姓名
export const updateUserBaseInfo = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/updateUserBaseInfo', params, config)
// 编辑头像
export const updateHeadPicture = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/updateHeadPicture', params, config)
// 更新会员昵称
export const modifyUserNikeName = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/modifyUserNikeName', params, config)

// 个人中心-获取可用优惠券数量
export const countCouponNumForStauts = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycUrl' }}) => http.post('/coupon/countCouponNumForStauts', params, config)
// 个人中心-判断是否绑定微信
export const queryAccountBindWechat = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/applet/queryAccountBindWechat', params, config)
// 个人中心-账号绑定微信
export const accountBindWechat = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/applet/accountBindWechat', params, config)

// 会员-我的收藏列表
export const getMemberCollect = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/getProductCollect', params, config)
// 会员-我的收藏列表
export const noBrowseCount = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycUrl' }}) => http.post('/msg/admin/app/user/noBrowseCount', params, config)

// 会员权益-特权配置-列表
export const appPrivilegeList = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/appPrivilegeList', params, config)
// 会员权益-任务中心-列表
export const taskCenter = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/taskCenter', params, config)
// 会员权益-查询成长值明细集合-分页
export const queryGrowthRecodeList = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/growth/queryGrowthRecodeList', params, config)

// 礼品商城-获取积分记录列表-分页
export const QueryIntegralRecordDetails = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/QueryIntegralRecordDetails', params, config)
// 礼品商城-前台礼品商城列表-分页
export const searchFrontIntegralShoppingMsg = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/goods/page', params, config)
// 礼品商城-积分商品详情页
export const serachIntegralProductMsg = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/goods/detail', params, config)
// 礼品商城-获取积分订单列表列表-分页
export const queryStoreIntegralOrders = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/order/page', params, config)
// 礼品商城-提交积分订单
export const submitIntegralOrder = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/order/confirm', params, config)
//礼品商城 - 自有商品提交订单
export const ownGoodsConfirm = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/order/ownGoodsConfirm', params, config)
//积分-兑换校验
export const checkExchange = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/order/checkExchange', params, config)
//积分-根据id查询积分订单详情 -新接口
export const detailByOrderNo = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/order/detailByOrderNo', params, config)
// 积分-申请取消
export const cancelOrder = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/afterSaleBase/cancelOrder', params, config)
//积分 -申请售后 原因
export const queryCancelReason = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/afterSaleBase/queryCancelReason', params, config)
//积分-提交申请售后
export const applyForAfterSale = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/afterSaleBase/applyForAfterSale', params, config)
// 积分-查询物流信息
export const integralExpress = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/order/express', params, config)
// 积分-查询售后详情
export const getAfterSaleDetail = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/afterSaleBase/getAfterSaleDetail', params, config)
//查询可用鑫币/可用积分
export const queryCoin = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/coinManage/queryCoin', params, config)
// 查询 鑫币记录
export const queryCoinRecord = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/integral/coinRecord/queryCoinRecord', params, config)
//购物车分类 常购商品分类查询接口
export const getFrontCategoryList = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/order/regularpurchase/oneCategory', params, config)
//购物车分类 收藏查询分类接口
export const getMemberCollectOneCategory = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/membership/myCollect/getMemberCollectOneCategory', params, config)

//查询鑫币商品分类
export const oneCategory = (data, config = { custom: { type: 'ycUrl' }}) => http.get('/integral/goods/one-category', config)
export const getCategoryList = (data, config = { custom: { type: 'ycUrl' }}) => http.get('/integral/goods/getCategoryList?categoryType='+data.categoryType, config)
// 查询有效的问卷列表
export const querynrEffectiveAuestionnaire = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/ycstore/questionnaire/querynrEffectiveAuestionnaire', params, config) 
// 意见反馈列表查询
export const searchFrontFreeBackList = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/store/searchFrontFreeBackList', params, config)
// 意见反馈提交
export const addFreeBackMsg = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/store/addFreeBackMsg', params, config)
// 意见反馈详情
export const searchFreeBackMsg = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycUrl' }}) => http.post('/store/searchFreeBackMsg', params, config)
